package net.osweb.crm.modules.sys.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * Sysmodule entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_module", uniqueConstraints = @UniqueConstraint(columnNames = "module_type"))
public class SysModule implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4903944924096698263L;
	private Integer id;
	private String moduleType;
	private Integer moduleId;
	private String comment;

	// Constructors

	/** default constructor */
	public SysModule() {
	}

	/** full constructor */
	public SysModule(String moduleType, Integer moduleId, String comment) {
		this.moduleType = moduleType;
		this.moduleId = moduleId;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "module_type", unique = true, length = 50)
	public String getModuleType() {
		return this.moduleType;
	}

	public void setModuleType(String moduleType) {
		this.moduleType = moduleType;
	}

	@Column(name = "module_id")
	public Integer getModuleId() {
		return this.moduleId;
	}

	public void setModuleId(Integer moduleId) {
		this.moduleId = moduleId;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}